package org.edu.modules.oa.controller;

import groovy.util.logging.Slf4j;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.edu.common.api.vo.Result;
import org.edu.common.aspect.annotation.AutoLog;
import org.edu.modules.oa.entity.VeOaMeetSummaryEntity;
import org.edu.modules.oa.service.IVeOaMeetApplyServer;
import org.edu.modules.oa.service.IVeOaMeetSummaryQueryService;
import org.edu.modules.oa.vo.VeOaMeetApplyTable;
import org.edu.modules.oa.vo.VeOaMeetProceedApplyVo;
import org.edu.modules.oa.vo.VeOaMeetSummaryQueryTableVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;

@Api(tags="会议申请")
@RestController
@RequestMapping("oa/veOaMeetSummaryQuery")
@Slf4j
public class VeOaMeetSummaryQueryController {
    // 会议申请业务
    @Resource
    private IVeOaMeetSummaryQueryService iVeOaMeetSummaryQueryService;




    // 日志注解
    @AutoLog(value = "会议申请-显示表格")
    @ApiOperation(value="显示表格", notes="会议申请-显示表格")
    // 显示表格
    @PostMapping(value = "/showTable")

    public Result<?> showTable(VeOaMeetSummaryQueryTableVo veOaMeetSummaryQueryTableVo, Integer startPage, Integer pageSize) {

        HashMap<String, Object> map=iVeOaMeetSummaryQueryService.showTable(veOaMeetSummaryQueryTableVo,startPage,pageSize);

        return Result.OK(map);
    }


}
